﻿/*!
* This file is part of - WebExtras
* Copyright (C) 2014 Mihir Mone
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

@import "webextras.common.less";

@borderColor: #AAAAAA;
@borderColorDark: #666666;
@radius: 4px;

/* JQUERY UI OVERRIDES */
input, textarea, select {
  min-height: 20px;
}

.ui-icon {
  display: inline-block;
  margin-right: 2px;
  margin-bottom: -2px;
}

.ui-state-success {
  background: url(img/jqueryui/ui-bg_highlight-soft_60_4ca20b_1x100.png) repeat-x scroll 50% 50% #4CA20B;
  border: 1px solid #45930B;
  color: #FFFFFF;
  font-weight: normal;

  .ui-icon {
    background-image: url(img/jqueryui/ui-icons_ffffff_256x240.png);
  }
}

*[class*=ui-alert] {
  padding: 5px 0;
  margin: 0 0 2px 0;

  *[class*=ui-state] {
    padding: 3px 5px;
  }

  .ui-icon {
    margin-top: 2px;
    margin-right: 2px;
  }
}

/* JQUERY UI EXTENSIONS */
.ui-table {
  border: 1px solid @borderColor;
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;

  tr {
    border: 1px solid @borderColor;

    td, th {
      padding: 0.5em;
      line-height: 20px;
      vertical-align: top;
      border-left: 1px solid @borderColor;

      &:first-child {
        border-top-left-radius: @radius;
        border-top-right-radius: @radius;
      }
    }
  }
}

.ui-icon.ui-error {
  background-image: url(img/jqueryui/ui-icons_a83300_256x240.png);
}

.ui-icon.ui-highlight {
  background-image: url(img/jqueryui/ui-icons_4b8e0b_256x240.png);
  border: 0;
}

.ui-datepicker-container {
  padding: 4px 5px 4px 0;
  margin-top: 1px;

  .hasDatepicker {
    margin-left: -1px;
  }
}

.ui-datepicker-trigger {
  margin-left: 3px;
  margin-right: -2px;
  margin-bottom: -3px;
  cursor: pointer;
}

/* JQUERY DATATABLE EXTENSIONS */

table.display {
  tbody {
    tr.success td {
      background-color: #dff0d8;
    }

    tr.error td,
    tr.danger td {
      background-color: #f2dede;
    }

    tr.warning td {
      background-color: #fcf8e3;
    }

    tr.info td {
      background-color: #d9edf7;
    }
  }
}
